<!doctype html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <title>收货地址</title>
    <!--htmlHead-->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta content="" name="Keywords">
    <meta content="" name="Description">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="design by www.jerei.com">
    <link rel="stylesheet" href="../themes/omused/pc/resources/amaze-full/css/amazeui.custom.min.css">
    <link rel="stylesheet" href="../themes/omused/pc/resources/css/assess.css">
</head>

<body>
    <div class="ginjog">
        <div class="block clearfix user-wrap">
            <div class="f-l">
                <div class="user-box">
                    <div class="img-box">
                        <img src="../themes/omused/pc/resources/upload/user.png">
                    </div>
                    <div class="user-txt">
                        <p class="name">JM152XCMC</p>
                        <p class="vip">普通会员 <img src="../themes/omused/pc/resources/images/icon/icon_vip.png"><em class="vip-nub">1</em></p>
                    </div>
                </div>
                <div data-am-widget="accordion" class="am-accordion am-accordion-basic side-nav" data-am-accordion='{  }'>
                    <dl class="am-accordion-item am-active">
                        <dt class="am-accordion-title">
                            我的账户
                        </dt>
                        <dd class="am-accordion-bd am-collapse am-in">
                            <div class="am-accordion-content">
                                <ul>
                                    <li><a href="user_info.html">个人资料</a></li>
                                    <li><a href="">安全设置</a></li>
                                    <li class="active"><a href="">收货地址</a></li>
                                    <li><a href="">消息管理</a></li>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                    <dl class="am-accordion-item">
                        <dt class="am-accordion-title">
                            我的交易
                        </dt>
                        <dd class="am-accordion-bd am-collapse ">
                            <div class="am-accordion-content">
                                <ul>
                                    <li><a href="">我的订单</a></li>
                                    <li><a href="">退款管理</a></li>
                                    <li><a href="">我的购物车</a></li>
                                    <li><a href="">我的询价</a></li>
                                    <li><a href="">我的足迹</a></li>
                                    <li><a href="">我的优惠券</a></li>
                                    <li><a href="">我的积分</a></li>
                                    <li><a href="">我的代理</a></li>
                                    <li><a href="">我的抽佣</a></li>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                    <dl class="am-accordion-item">
                        <dt class="am-accordion-title">
                            我的收藏
                        </dt>
                        <dd class="am-accordion-bd am-collapse ">
                            <div class="am-accordion-content">
                                <ul>
                                    <li><a href="">商品收藏</a></li>
                                    <li><a href="">店铺收藏</a></li>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                    <dl class="am-accordion-item">
                        <dt class="am-accordion-title">
                            我的车辆
                        </dt>
                        <dd class="am-accordion-bd am-collapse ">
                            <div class="am-accordion-content">
                                <ul>
                                    <li><a href="">我要卖车</a></li>
                                    <li><a href="">我的求购</a></li>
                                    <li><a href="">我的置换</a></li>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                    <dl class="am-accordion-item">
                        <dt class="am-accordion-title">
                            我的拍卖
                        </dt>
                        <dd class="am-accordion-bd am-collapse ">
                            <div class="am-accordion-content">
                                <ul>
                                    <li><a href="">拍卖车辆</a></li>
                                    <li><a href="">竞拍车辆</a></li>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                    <dl class="am-accordion-item">
                        <dt class="am-accordion-title">
                            评估管理
                        </dt>
                        <dd class="am-accordion-bd am-collapse ">
                            <div class="am-accordion-content">
                                <ul>
                                    <li><a href="">评估列表</a></li>
                                </ul>
                            </div>
                        </dd>
                    </dl>
                </div>
            </div>
            <div class="f-r pulic-user-box">
                <div class="public-title">
                    <p class="site">您所在位置：我的账户 > 收货地址</p>
                    <span class="title">收货地址</span>
                </div>
                <div class="site-wrap">
                    <div class="site-add clearfix">
                        <div class="site-item" id="mraddress">
                            <script type="text/html" id="mraddresstpl">
                            <%for(var i = 0; i < data.addressList.length ; i++){%>
                                <%if(data.addressList[i].status == 1){%>
                                    <div class="title"><span class="am-icon-home"></span>默认地址</div>
                                    <span class="name"><%=data.addressList[i].contactName%></span>
                                    <p><%=data.addressList[i].provinceName%> <%=data.addressList[i].cityName%> <%=data.addressList[i].districtName%> <%=data.addressList[i].address%></p>
                                    <p class="phone"><%=data.addressList[i].contactTel%></p>
                                <%}%>
                            <%}%>
                            </script>
                        </div>
                        <div class="add-item" data-am-modal="{target: '#doc-modal-2', closeViaDimmer: 0, width: 565, height: 420}" >
                            <i class="am-icon-plus"></i>
                            <p>增加新地址</p>
                        </div>
                    </div>
                    <div class="all-site clearfix">
                        <div class="all-title">全部地址</div>
                        <div class="all-site-padding clearfix" id="listaddress"></div>  
                           <script type="text/html" id="listaddresstpl">
                            <%for (var i = 0 ; i < data.addressList.length ; i++) { %>
                                <div class="site-item <%if(data.addressList[i].status != 1){%>de-site-item<%}%>">
                                <div class="title clearfix">
                                    <div class="edit-box"><i class="am-icon-home" onclick="moren(<%=data.addressList[i].id%>)"></i><i class="am-icon-edit"></i><i class="am-icon-trash" onclick="daddr(<%=data.addressList[i].id%>)"></i></div>
                                </div>
                                <span class="name"><%=data.addressList[i].contactName%></span>
                                <p><%=data.addressList[i].provinceName%> <%=data.addressList[i].cityName%> <%=data.addressList[i].districtName%> <%=data.addressList[i].address%></p>
                                <p class="phone"><%=data.addressList[i].contactTel%></p>
                                </div>
                            <%}%>
                           </script>
                    </div>
                </div>
            </div>
        </div>
        <!--收货地址新增-->
        <div class="am-modal am-modal-no-btn addaddress" tabindex="-2" id="doc-modal-2">
            <div class="am-modal-dialog newaddress">
                <div class="am-modal-hd">
                    新增收货地址<span data-am-modal-close class="am-close">x</span>
                </div>
                <div class="am-modal-bd">
                    <div class="am-form-group">
                        <label for="shjr" class="am-form-label"><i>*</i>收件人姓名：</label>
                        <input type="txt" class="am-form-field" id="shjr">
                    </div>
                    <div class="am-form-group am-form-select add-form-group address_sel">
                        <label for="provice" class="am-form-label"><i>*</i>收货地址：</label>
                        <select data-am-selected id="provice">
                        </select>
                        <select data-am-selected id="citytpl">
                        </select>
                        <select data-am-selected id="areatpl">
                        </select>
                    </div>
                    <div class="am-form-group textarea-form-group">
                        <label for="xqdzh" class="am-form-label">详细地址：</label>
                        <textarea class="" rows="5" id="xqdzh"></textarea>
                    </div>
                    <div class="am-form-group">
                        <label for="yzhbm" class="am-form-label"><i>*</i>邮政编码：</label>
                        <input type="txt" class="am-form-field" id="yzhbm">
                    </div>
                    <div class="am-form-group">
                        <label for="phone" class="am-form-label"><i>*</i>手机号码：</label>
                        <input type="txt" class="am-form-field" id="phone">
                    </div>
                    <p class="moren">
                        <input type="checkbox" class="muilbox" id="moren" value="0">设置为默认收货地址</p>
                    <div class="btn-box">
                        <span class="btn">保存收货地址</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="/themes/omused/pc/resources/js/script.js"></script>
    <script src="../themes/omused/pc/resources/js/user_address.js"></script>
</body>

</html>